/**
 * Created by zander on 2017/11/21.
 */

function saveEmailJk() {
    var email = $("#Addemail").val();
    run("jiekuan", email);
}

function run(type, email) {
    $.ajax({
        type: "POST",
        url: "/intest/run_regression",
        data: JSON.stringify({"type": type, "email": email}),
        async:true,
        dataType: "json",
        success: function (ret) {
            if (ret.status == "0000"){
                alert('正在执行中，请稍后查看邮件');
            }
        },

    });
};